using System;
using System.IO;

public class ProjectWeaversFinder
{
    public const string ConfigFileName = "FodyWeavers.xml";

    public ProjectPathFinder ProjectPathFinder;
    public BuildLogger Logger;
    public string ConfigFilePath;
    public bool Exists;

    public void Execute()
    {
        var directoryName = Path.GetDirectoryName(ProjectPathFinder.ProjectFilePath);
        ConfigFilePath = Path.Combine(directoryName, ConfigFileName);
        Exists = File.Exists(ConfigFilePath);
        if (!Exists)
        {
            Logger.LogInfo(string.Format("Could not find path to weavers file '{0}'.", ConfigFilePath));
            return;
        }
    }
}